﻿@model JobButenko.Models.UserModel
           
@{
    ViewBag.Title = "Register";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Регистрация</h2>
@using (Html.BeginForm("Register", "Account", FormMethod.Post, new {id = "myFrom"}))
{
    <div>
        <table>
            <tr>
                <td>@Html.LabelFor(model => model.UserName)</td>
                <td>@Html.TextBoxFor(model => model.UserName, new {id = "userName", @class = "serchVacancyTxt"})</td>
                <td>@Html.ValidationMessageFor(model => model.UserName)</td>
            </tr>
            <tr>
                <td>@Html.LabelFor(model => model.Password)</td>
                <td>@Html.PasswordFor(model => model.Password, new {@class = "serchVacancyTxt"})</td>
                <td>@Html.ValidationMessageFor(model => model.Password)</td>
            </tr>
            <tr>
                <td>@Html.LabelFor(model => model.ConfirmPassword)</td>
                <td>@Html.PasswordFor(model => model.ConfirmPassword, new {@class = "serchVacancyTxt"})</td>
                <td>@Html.ValidationMessageFor(model => model.ConfirmPassword)</td>
            </tr>
            <tr>
                <td>@Html.LabelFor(model => model.Email)</td>
                <td>@Html.TextBoxFor(model => model.Email, new {@class = "serchVacancyTxt"})</td>
                <td>@Html.ValidationMessageFor(model => model.Email)</td>
            </tr>
            <tr>
                <td>@Html.Label("Регестрируемся как:")</td>
                <td colspan="2">@Html.DropDownList("RoleId", (IEnumerable<SelectListItem>) ViewData["Roles"],
                             new {@class = "serchVacancyTxt", name = "roleId"})</td>
            </tr>
            <tr>
                <td></td>
                <td colspan="2"><input class="buttonForm" type="submit" value="Зарегестрироваться"/></td>
            </tr>
        </table>
    </div>
}